package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.Exam01.Bai1.Bai1;

/**
 * Created by Sang on 07/03/2016.
 */
public class TamgiacController {
    private TamgiacEntity tamgiacEntity;

    public TamgiacController(TamgiacEntity tamgiacEntity) {
        this.tamgiacEntity = new TamgiacEntity();
    }

    public double Area(TamgiacEntity tamgiacEntity) {
        return tamgiacEntity.getArea(tamgiacEntity);
    }

    public double Perimeter(TamgiacEntity tamgiacEntity) {
        return tamgiacEntity.getPerimeter(tamgiacEntity);
    }
}
